<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#A" data-toggle="tab">{:L('GENERAL_SETTING')}</a></li>
        <!--<li><a href="#B" data-toggle="tab">{:L('SEO_SETTING')}</a></li>-->
        <!--<li><a href="#C" data-toggle="tab">{:L('TEMPLATE_SETTING')}</a></li>-->
    </ul>
    <form class="form-horizontal js-ajax-form" action="{:U(CONTROLLER_NAME.'/'.ACTION_NAME)}" method="post">
        <div class="tabbable">
            <div class="tab-content">
                <div class="tab-pane active" id="A">
                    <fieldset>
                        <div class="control-group">
                            <label class="control-label">所属组</label>
                            <div class="controls">
                                <select name="module_id">
                                    <option value="0">作为组</option>
                                    <volist name="parents" id="vo">

                                        <option value="{$vo.id}">└─{$vo.name}</option>
                                    </volist>
                                </select>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">属性名称</label>
                            <div class="controls">
                                <input type="text" name="name" value=""><span class="form-required">*</span>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">是否为筛选条件</label>
                            <div class="controls">
                                <select name="is_filter">
                                    <option value="1">是</option>
                                    <option value="0">否</option>
                                </select>
                                <span class="help-inline">1.作为组若是则用户可以在列表页面根据属性对厂商进行筛选<br/>2.作为具体属性若为是则会在该组筛选条件里出现</span>
                            </div>
                        </div>
                        <div class="control-group">
                            <label class="control-label">组值是否唯一</label>
                            <div class="controls">
                            <select name="is_unique">
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>
                            <span class="help-inline">若唯一则该组同时只能存在一个值(作为组时必填)</span>
                            </div>
                        </div>

                    </fieldset>
                </div>
                <div class="tab-pane" id="B">

                </div>
                <div class="tab-pane" id="C">

                </div>
            </div>
        </div>
        <div class="form-actions">
            <button class="btn btn-primary js-ajax-submit"type="submit">{:L('ADD')}</button>
            <a class="btn" href="{:U(CONTROLLER_NAME.'/index')}">{:L('BACK')}</a>
        </div>
    </form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
</body>
</html>